package com.maxie.state.impl;

import com.maxie.state.State;

/**
 * 单据的常规状态
 */
public class ChangeState implements State {
    @Override
    public void insert() {
        System.out.println("变更单据执行插入~~~");
        System.out.println("变更过程中：我加入了changeFlag=1,同时修改原单据的changing=1");
    }

    @Override
    public void delete() {
        System.out.println("变更单据执行删除~~~");
        System.out.println("变更删除后，我需要将原单据的changing=0");
    }

    @Override
    public void update() {
        System.out.println("变更单据执行更新~~~");
        System.out.println("变更的更新与普通单据的更新一样");
    }
}
